<template>
  <div>
    <p>child</p>
    <slot :msg="msg"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "作用域插槽 Child",
    };
  },
};
</script>